import { Module, forwardRef } from '@nestjs/common';
import { TeacherService } from './teacher.service';
import { TeacherController } from './teacher.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Teacher } from './entities/teacher.entity';
import { UserModule } from '../user/user.module';
import { SchoolModule } from '../school/school.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Teacher]),
    forwardRef(() => UserModule),
    forwardRef(() => SchoolModule)
  ],
  controllers: [TeacherController],
  providers: [TeacherService]
})
export class TeacherModule { }
